#include <xp/bas/sysapi.h>
#include <xp/bas/locale.h>
#include <xp/bas/stdio.h>

int xp_main ()
{
	xp_char_t buf[XP_PATH_MAX + 1];
	
	if (xp_setlocale () == -1) {
		xp_printf (XP_TEXT("cannot setlocale\n"));
		return -1;
	}

	if (xp_getcwd (buf, xp_countof(buf)) == -1) {
		xp_printf (XP_TEXT("cannot getcwd\n"));
		return -1;
	}

	xp_printf (XP_TEXT("cwd: [%s]\n"), buf);
	return 0;
}

